<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@taglib prefix="mvc" uri="http://www.springframework.org/tags/form" %>
<%@taglib prefix="fmt" uri="http://www.springframework.org/tags" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<html>
<head>
    <title><fmt:message code="vote.th.Details" /></title>
    <link rel="stylesheet" href="/css/hr/personnelInformation.css">
    <script src="/js/common/language.js"></script>
    <script src="../../js/jquery/jquery-1.9.1.js" type="text/javascript" charset="utf-8"></script>
    <script src="../../lib/layer/layer.js?20201106"></script>
    <script src="/js/base/base.js"></script>
    <script src="/js/jquery/jquery.cookie.js"></script>
    <script src="/js/personnelInformation.js"></script>
</head>
<body style="background: white">
<div class="navigation">
    <select name="select" id="select" style="background: white; width:120px;height: 28px;margin: 10px 10px 10px 10px;" title="">
        <option value="1">人事档案</option>
        <option value="2">合同信息</option>
        <option value="3">奖惩信息</option>
        <option value="4">证照信息</option>
        <option value="5">学习经历</option>
        <option value="6">工作经历</option>
        <option value="7">劳动技能</option>
        <option value="8">社会关系</option>
        <option value="9">人事调动</option>
        <option value="10">复职信息</option>
        <option value="11">职称评定</option>
        <option value="12">培训记录</option>
        <option value="13">薪酬信息</option>
        <option value="14">绩效考核</option>
      <%--  <option value="15">考勤记录</option>--%>

<%--        <option value="10">离职信息</option>
        <option value="14">考勤记录</option>
        <option value="16">福利信息</option>--%>
    </select>
</div>
<div id="staffInfoDiv">

</div>
<iframe id="mainIframe" style="width: 100%; height: 90%;" name="notices" src="" frameborder="0">

</iframe>

<script>
    var staffId = getCookie('userId');
    if(staffId == null){
        $.ajax({
            url:'/user/getNowLoginUser',
            type:'post',
            async:false,
            success:function(json){
                var obj = json.object;
                if(json.flag){
                    staffId = obj.userId;
                }
            }
        });
    }
    var datas = ['/hr/selfhelpInquiryContractStraff',
        '/hr/selfhelpInquirybonpenManage',
        '/hr/selfhelpInquiryHrPhotoManager',
        '/hr/SelfhelpInquiryLearningExperienceManager',
        '/hr/SelfhelpInquiryWorkExperienceManager',
        '/hr/selfhelpInquieySkillManage',
        '/hr/selfhelpInquirySocialRelationsManaer',
        '/hr/selshelpInquiryHrTransferManager',
        '/hr/selfhelpInquiryHrRehabManager',
        '/hr/selfhelpInquiryEvaluationManagement',
        '/hr/selfhelpInquiryTrainRecordMange',
        '/hr/selfhelpInquiryPersonWages',
        '/hr/selfhelpInquiryAssessmentTaskment',
       /* '/selfhelpInquiry/selfhelpInquieyAttendSetting'*/

    /*    'hr/manage/staff_leave',
        '/attendPage/personnelStatistics',
        'personSalary/personLclb'*/
    ];

    $("select").change(function(){
            var value = $(this).val();
            if(value==1){
                $('#mainIframe').hide();
                staffInfo();
            } else {
                $('#staffInfoDiv').html('');
                var str = datas[value-2];
                $('#mainIframe').attr('src', str);
                $('#mainIframe').show();
            }
    });

    function formatDate(now) {
        var year=now.getYear();
        var month=now.getMonth()+1;
        var date=now.getDate();
        var hour=now.getHours();
        var minute=now.getMinutes();
        var second=now.getSeconds();
        return "20"+year+"-"+month+"-"+date+" "+hour+":"+minute+":"+second;
    }

    function check(name){
        if(name == undefined){
            return ''
        }else {
            return name;
        }
    }

    function getCookie(name) {
        var arr,reg=new RegExp("(^| )"+name+"=([^;]*)(;|$)");
        if(arr=document.cookie.match(reg))
            return unescape(arr[2]);
        else
            return null;
    }

    function staffInfo () {
/*
        var staffId = 60;*/
        $.post('/hr/api/selectStaffInfo',{userId:staffId},function(json){
            if(json.flag){
                var arr=json.object;
                var str = '';
                if(arr != null) {
                    var shengxiao = '';
                    var xingzuo = '';
                    var birth= arr.staffBirth;
                    if (birth != '' && birth != '0000-00-00') {
                        shengxiao = Calculator.shengxiao(birth);
                        birth=birth.replace(/-/g,"");
                        var month=birth.substring(4,6);
                        var day=birth.substring(6,8);
                        xingzuo = Calculator.xingzuo(month,day);
                    }

                    str+=' \
                <table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">\
                            <tbody>\
                                <tr>\
                                    <td class="Big">\
                                       \
                                   \
                                    <br>\
                                    </td>\
                                </tr>\
                             </tbody>\
                     </table>\
                      <table class="TableBlock" width="80%" align="center">\
                <tbody>\
                <tr>\
                <td nowrap="" class="TableHeader" colspan="6"><b>&nbsp;'+url_th_EssentialInformation+'</b></td>\
            </tr>\
            <tr>\
            <td nowrap="" align="left" class="TableContent">OA'+global_lang_user+'：</td>\
            <td class="TableData" colspan="4">'+check(arr.userId)+'</td>\
                <td class="TableData" align="center" rowspan="6" colspan="2">\
                <div class="avatar"><a href="javascript:void(0)">' +
                        '<img src="../../img/hr/'+check(arr.photoName)+'" width="130">' +
                        '</a></div>\
                            </td>\
                            </tr>\
                            <tr>\
                            <td nowrap="" align="left" class="TableContent">'+userManagement_th_department+'：</td>\
            <td nowrap="" align="left" class="TableData">'+check(arr.deptName)+'</td>\
                <td nowrap="" align="left" class="TableContent">'+userManagement_th_role+'：</td>\
            <td class="TableData" colspan="2">'+check(arr.userPrivName)+'</td>\
                </tr>\
                <tr>\
                <td nowrap="" align="left" class="TableContent">'+hr_th_number+'：</td>\
            <td nowrap="" align="left" class="TableData" width="180">'+check(arr.staffNo)+'</td>\
                <td nowrap="" align="left" class="TableContent">'+hr_th_JobNumber+'：</td>\
            <td class="TableData" colspan="2">'+check(arr.workNo)+'</td>\
                </tr>\
                <tr>\
                <td nowrap="" align="left" class="TableContent">'+userDetails_th_name+'：</td>\
            <td class="TableData" width="180">'+check(arr.staffName)+'</td>\
                <td nowrap="" align="left" class="TableContent">'+hr_th_NameUsedBefore+'：</td>\
            <td class="TableData" colspan="2">'+check(arr.beforeName)+'</td>\
                </tr>\
                <tr>\
                <td nowrap="" align="left" class="TableContent">'+hr_th_EnglishName+'：</td>\
            <td class="TableData">'+check(arr.staffEName)+'</td>\
                <td nowrap="" align="left" class="TableContent">'+userDetails_th_Gender+'：</td>\
            <td class="TableData" colspan="2">'+function () {
                            if(arr.staffSex==1){
                                return userInfor_th_female
                            }else {
                                return userInfor_th_male
                            }
                        }()+'</td>\
                </tr>\
                <tr>\
                <td nowrap="" align="left" class="TableContent">'+hr_th_IDNumber+'：</td>\
            <td class="TableData">'+check(arr.staffCardNo)+'</td>\
                <td nowrap="" align="left" class="TableContent">'+hr_th_DateOfBirth+'：</td>\
            <td class="TableData" colspan="2">'+function () {
                            if(arr.staffBirth==undefined || arr.staffBirth=='0000-00-00'){
                                return ''
                            }
                            return arr.staffBirth;
                        }()+' </td>\
                </tr>\
                <tr>\
                <td nowrap="" align="left" class="TableContent">'+url_th_Zodiac+'</td>\
                <td class="TableData">'+check(shengxiao)+'</td>\
                <td nowrap="" align="left" class="TableContent">'+url_th_constellation+'</td>\
                <td class="TableData">'+check(xingzuo)+'</td>\
                <td nowrap="" align="left" class="TableContent">'+url_th_BloodType+'</td>\
                <td class="TableData">'+check(arr.bloodType)+' </td>\
                </tr>\
                <tr>\
                <td nowrap="" align="left" class="TableContent">'+hr_th_Age+'：</td>\
            <td class="TableData" width="180">'+check(arr.staffAge)+'</td>\
                <td nowrap="" align="left" class="TableContent">'+hr_th_annualLeave+':</td>\
            <td class="TableData" colspan="3">'+function () {
                            if(arr.leaveType==undefined){
                                return ''
                            }else {
                                return arr.leaveType
                            }
                        }()+ '</td>\
                </tr>\
                <tr>\
                <td nowrap="" align="left" class="TableContent">'+hr_th_PlaceOfOrigin+'：</td>\
            <td class="TableData">'+check(arr.staffNativePlace2)+'</td>\
                <td nowrap="" align="left" class="TableContent">'+hr_th_Nation+'：</td>\
            <td class="TableData" colspan="3">'+check(arr.staffNationality)+'</td>\
                </tr>\
                <tr>\
                <td nowrap="" align="left" class="TableContent">'+hr_th_MaritalStatus+'：</td>\
            <td class="TableData" width="180">'+function () {
                            if(arr.staffMaritalStatus==1){
                                return hr_th_married
                            } else if(arr.staffMaritalStatus==0){
                                return hr_th_unmarried
                            }else if(arr.staffMaritalStatus==2){
                                return hr_th_Divorce
                            }else if(arr.staffMaritalStatus==0){
                                return hr_th_Widowed
                            }else if(arr.staffMaritalStatus==undefined){
                                return ""
                            }
                        }()+' </td>\
                <td nowrap="" align="left" class="TableContent">'+hr_th_Health+'：</td>\
            <td class="TableData" colspan="3">'+check(arr.staffHealth)+'</td>\
                </tr><tr>\
                <td nowrap="" align="left" class="TableContent">'+hr_th_PoliticalOutlook+'：</td>\
            <td class="TableData" width="180">'+function () {
                            if(arr.staffPoliticalStatus==0){
                                return ''
                            }else if(arr.staffPoliticalStatus==1){
                                return hr_th_TheMasses
                            }else if(arr.staffPoliticalStatus==2){
                                return hr_th_Communist
                            }else if(arr.staffPoliticalStatus==3){
                                return hr_th_CPCMembers
                            }else if(arr.staffPoliticalStatus==4){
                                return hr_th_CPCProbationaryParty
                            }else if(arr.staffPoliticalStatus==5){
                                return hr_th_DemocraticParties
                            }else if(arr.staffPoliticalStatus==4){
                                return hr_th_PersonagesWithoutParty
                            }
                        }()+'</td>\
                <td nowrap="" align="left" class="TableContent">'+hr_th_PartyMembershipTime+'：</td>\
            <td class="TableData" colspan="3">'+function(){
                            if(arr.joinPartyTime==undefined){
                                return ''
                            }else {
                                return arr.joinPartyTime
                            }
                        }()+'</td>\
                </tr>\
                <tr>\
                <td nowrap="" align="left" class="TableContent">'+hr_th_Household+'：</td>\
            <td class="TableData" width="180">'+function () {
                            if(arr.staffType==0||arr.staffType==undefined){
                                return ''
                            }else if(arr.staffType==1){
                                return hr_th_UrbanMunicipality
                            }else if(arr.staffType==2){
                                return hr_th_WorkersTowns
                            }else if(arr.staffType==3){
                                return hr_th_MigrantCity
                            }else if(arr.staffType==4){
                                return hr_th_MigrantWorkers
                            }else if(arr.staffType==5){
                                return hr_th_RuralLabor
                            }else if(arr.staffType==6){
                                return hr_th_OutOfTown
                            }

                        }()+'</td>\
                <td nowrap="" align="left" class="TableContent">'+hr_th_RegisteredResidence+':</td>\
            <td class="TableData" colspan="3">'+check(arr.staffDomicilePlace)+'</td>\
                </tr>\
                <tr>\
                <td nowrap="" class="TableHeader" colspan="6"><b>&nbsp;'+hr_th_Position+'：</b></td>\
            </tr>\
            <tr>\
            <td nowrap="" align="left" class="TableContent">'+hr_th_TypeWork+'：</td>\
            <td class="TableData" width="180">'+check(arr.workType)+'</td>\
                <td nowrap="" align="left" class="TableContent">'+hr_th_AdministrativeLevel+'：</td>\
            <td class="TableData" width="180">'+check(arr.administrationLevel)+'</td>\
                <td nowrap="" align="left" class="TableContent">'+hr_th_EmployeeType+':</td>\
            <td class="TableData">'+check(arr.staffOccupation)+' </td>\
                </tr>\
                <tr>\
                <td nowrap="" align="left" class="TableContent">'+hr_th_TitleLevel+'：</td>\
            <td class="TableData" width="180">'+function(){
                            if(arr.workLevel==undefined){
                                return ''
                            }else {
                                return arr.workLevel
                            }
                        }()+'</td>\
                <td nowrap="" align="left" class="TableContent">'+hr_th_post+'：</td>\
            <td class="TableData" width="180">'+check(arr.workJob)+'</td>\
                <td nowrap="" align="left" class="TableContent">'+user_th_AttendanceType+'：</td>\
            <td class="TableData" width="180">'+hr_th_RegularClass+'</td>\
                </tr>\
                <tr>\
                <td nowrap="" align="left" class="TableContent">'+userDetails_th_post+'：</td>\
            <td class="TableData" width="180">'+check(arr.jobPosition)+'</td>\
                <td nowrap="" align="left" class="TableContent">'+hr_th_Title+'：</td>\
            <td class="TableData" width="180">'+function(){
                            if(arr.presentPosition==undefined){
                                return ''
                            }else if(arr.presentPosition==''){
                                return ''
                            }else if(arr.presentPosition=='01'){
                                return hr_th_Engineer
                            }else if(arr.presentPosition=='02'){
                                return hr_th_AssistantEngineer
                            }else if(arr.presentPosition=='03'){
                                return hr_th_SeniorEngineer
                            }else if(arr.presentPosition=='04'){
                                return hr_th_Senior
                            }else if(arr.presentPosition=='07'){
                                return hr_th_Title
                            }else if(arr.presentPosition=='08'){
                                return hr_th_SeniorTitles
                            }
                        }()+'</td>\
                <td nowrap="" align="left" class="TableContent">'+hr_th_InductionTime+'：</td>\
            <td class="TableData" width="180">'+function () {
                            if(arr.datesEmployed==undefined || arr.datesEmployed=='0000-00-00'){
                                return ''
                            }
                                /*return formatDate(new Date(arr.datesEmployed))*/
                            return arr.datesEmployed
                        }()+'</td>\
                </tr>\
                <tr>\
                <td nowrap="" align="left" class="TableContent">'+hr_th_LengthUnit+':</td>\
            <td class="TableData" width="180">'+check(arr.jobAge)+'</td>\
                <td nowrap="" align="left" class="TableContent">'+hr_th_StartingSalary+':</td>\
            <td class="TableData" width="180">'+function () {
                            if(arr.beginSalsryTime==undefined || arr.beginSalsryTime=='0000-00-00'){
                                return ''
                            }
                            return arr.beginSalsryTime
                        }()+'</td>\
                <td nowrap="" align="left" class="TableContent">'+hr_th_Incumbency+':</td>\
            <td class="TableData" width="180">'+check(arr.workStatus)+'</td>\
                </tr>\
                <tr>\
                <td nowrap="" align="left" class="TableContent">'+hra_th_TotalLengthOfService+'：</td>\
            <td class="TableData" width="180">'+check(arr.workAge)+'</td>\
                <td nowrap="" align="left" class="TableContent">'+hr_th_WorkingHours+'：</td>\
            <td class="TableData" width="180">'+function () {
                            if(arr.jobBeginning==undefined  || arr.jobBeginning=='0000-00-00'){
                                return ''
                            }
                            return arr.jobBeginning
                        }()+'</td>\
                <td nowrap="" align="left" class="TableContent">'+hr_th_ContactNumber+'：</td>\
            <td class="TableData" width="180">'+check(arr.staffPhone)+'</td>\
                </tr>\
                <tr>\
                <td nowrap="" align="left" class="TableContent">'+hr_th_PhoneNumber+'：</td>\
            <td class="TableData">'+check(arr.staffMobile)+'</td>\
                <!--<td nowrap align="left" class="TableContent">'+hr_th_smalltong+'：</td>\
            <td class="TableData"  width="180"></td>-->\
                <td nowrap="" align="left" class="TableContent">MSN：</td>\
            <td class="TableData" colspan="3">'+check(arr.staffMsn)+'</td>\
                </tr>\
                <tr>\
                <td nowrap="" align="left" class="TableContent">'+main_email+'：</td>\
            <td class="TableData" width="180">'+check(arr.staffEmail) +'</td>\
                <td nowrap="" align="left" class="TableContent">'+hr_th_HomeAddress+'：</td>\
            <td class="TableData" colspan="3">'+check(arr.homeAddress)+'</td>\
                </tr>\
                <tr>\
                <td nowrap="" align="left" class="TableContent">QQ：</td>\
            <td class="TableData" width="180">'+check(arr.staffQq)+'</td>\
                <td nowrap="" align="left" class="TableContent">'+hr_th_OtherInformation+'：</td>\
            <td class="TableData" colspan="3">'+check(arr.otherContact)+'</td>\
                </tr>\
                <tr>\
                <td nowrap="" align="left" class="TableContent">'+depatement_th_Openingbank+'1：</td>\
            <td class="TableData" width="180">'+check(arr.bank1)+'</td>\
                <td nowrap="" align="left" class="TableContent">'+depatement_th_Accountnumber+'1：</td>\
            <td class="TableData" colspan="3">'+check(arr.bankAccount1)+'</td>\
                </tr>\
                <tr>\
                <td nowrap="" align="left" class="TableContent">'+depatement_th_Openingbank+'2：</td>\
            <td class="TableData" width="180">'+check(arr.bank2)+'</td>\
                <td nowrap="" align="left" class="TableContent">'+depatement_th_Accountnumber+'2：</td>\
            <td class="TableData" colspan="3">'+check(arr.bankAccount2)+'</td>\
                </tr>\
                <tr>\
                <td nowrap="" class="TableHeader" colspan="6"><b>&nbsp;'+hr_th_educationalBackground+'：</b></td>\
            </tr>\
            <tr>\
            <td nowrap="" align="left" class="TableContent">'+hr_th_Education+'：</td>\
            <td class="TableData" width="180">'+function () {
                            if(arr.staffHighestSchool==''){
                                return ''
                            }else if(arr.staffHighestSchool=='1'){
                                return vote_hr_1
                            }else if(arr.staffHighestSchool=='2'){
                                return vote_hr_2
                            }else if(arr.staffHighestSchool=='3'){
                                return vote_hr_3
                            }else if(arr.staffHighestSchool=='4'){
                                return vote_hr_4
                            }else if(arr.staffHighestSchool=='5'){
                                return vote_hr_5
                            }else if(arr.staffHighestSchool=='6'){
                                return vote_hr_6
                            } else if(arr.staffHighestSchool=='7'){
                                return vote_hr_7
                            }else if(arr.staffHighestSchool=='8'){
                                return vote_hr_8
                            }else if(arr.staffHighestSchool=='9'){
                                return vote_hr_9
                            }else if(arr.staffHighestSchool=='11'){
                                return vote_hr_10
                            }else if(arr.staffHighestSchool==undefined){
                                return ""
                            }
                        }()+ '</td>\
                <td nowrap="" align="left" class="TableContent">'+hr_th_AcademicDegree+'：</td>\
            <td class="TableData" width="180">'+function () {
                            if(arr.staffHighestDegree==''||arr.staffHighestDegree==undefined){
                                return ''
                            }else if(arr.staffHighestDegree=='1'){
                                return vote_hr_9
                            }else if(arr.staffHighestDegree=='2'){
                                return vote_hr_8
                            }else if(arr.staffHighestDegree=='3'){
                                return 'MBA'
                            }else if(arr.staffHighestDegree=='4'){
                                return vote_hr_13
                            }else if(arr.staffHighestDegree=='5'){
                                return vote_hr_12
                            }else if(arr.staffHighestDegree=='6'){
                                return vote_hr_11
                            } else if(arr.staffHighestDegree=='7'){
                                return event_th_nothing
                            }
                        }()+ '</td>\
                <td nowrap="" align="left" class="TableContent">'+hr_th_GraduationTime+'：</td>\
            <td class="TableData" width="180">'+function () {
                            if(arr.graduationDate==undefined  || arr.graduationDate=='0000-00-00'){
                                return ''
                            }
                            return arr.graduationDate
                        }()+'</td>\
                </tr>\
                <tr>\
                <td nowrap="" align="left" class="TableContent">'+hr_th_GraduationSchool+'：</td>\
            <td class="TableData" width="180">'+check(arr.graduationSchool)+'</td>\
                <td nowrap="" align="left" class="TableContent">'+hr_th_major+'：</td>\
            <td class="TableData" width="180">'+check(arr.staffMajor)+'</td>\
                <td nowrap="" align="left" class="TableContent">'+hr_th_ComputerLevel+'：</td>\
            <td class="TableData" width="180">'+check(arr.computerLevel)+'</td>\
                </tr>\
                <tr>\
                <td nowrap="" align="left" class="TableContent">'+hr_th_ForeignLanguage+'1：</td>\
            <td class="TableData" width="180">'+check(arr.foreignLanguage1)+'</td>\
                <td nowrap="" align="left" class="TableContent">'+hr_th_ForeignLanguage+'2：</td>\
            <td class="TableData" width="180">'+check(arr.foreignLanguage2)+'</td>\
                <td nowrap="" align="left" class="TableContent">'+hr_th_ForeignLanguage+'3：</td>\
            <td class="TableData" width="180">'+check(arr.foreignLanguage3)+'</td>\
                </tr>\
                <tr>\
                <td nowrap="" align="left" class="TableContent">'+hr_th_ForeignLanguageProficiency+'1：</td>\
            <td class="TableData" width="180">'+check(arr.foreignLevel1)+'</td>\
                <td nowrap="" align="left" class="TableContent">'+hr_th_ForeignLanguageProficiency+'2：</td>\
            <td class="TableData" width="180">'+check(arr.foreignLevel2)+'</td>\
                <td nowrap="" align="left" class="TableContent">'+hr_th_ForeignLanguageProficiency+'3：</td>\
            <td class="TableData" width="180">'+check(arr.foreignLevel3)+'</td>\
                </tr>\
                <tr>\
                <td nowrap="" align="left" class="TableContent">'+hr_th_Specialty+'：</td>\
            <td class="TableData" colspan="5">'+check(arr.staffSkills)+'</td>\
                </tr>\
                <tr>\
                <td nowrap="" align="left" colspan="3" class="TableHeader">'+hr_th_JobStatus+'：</td>\
            <td nowrap="" align="left" colspan="3" class="TableHeader">'+HR_TH_WarrantyRecord+'：</td>\
            </tr>\
            <tr>\
            <td class="TableData" colspan="3" style="vertical-align:top;">'+check(arr.certificate)+'</td>\
                <td class="TableData" colspan="3" style="vertical-align:top;">'+check(arr.surety)+'</td>\
                </tr>\
                <tr>\
                <td nowrap="" class="TableHeader" colspan="3"><b>&nbsp;'+HR_TH_SocialPayment+'：</b></td>\
            <td nowrap="" class="TableHeader" colspan="3"><b>&nbsp;'+HR_TH_PhysicalRecord+'：</b></td>\
            </tr>\
            <tr>\
            <td class="TableData" colspan="3" style="vertical-align:top;">'+check(arr.insure)+'</td>\
                <td class="TableData" colspan="3" style="vertical-align:top;">'+check(arr.bodyExamim)+'</td>\
                </tr>\
                <tr>\
                <td colspan="6">\
                <table width="100%" class="TableBlock">\
                <tbody><tr>\
                <td class="TableHeader" colspan="2">'+main_customset+'：'+check(arr.userdef1)+'</td>\
            </tr>\
            </tbody></table>\
            </td>\
            </tr>\
            <tr>\
            <td nowrap="" align="left" colspan="6" class="TableHeader">'+journal_th_Remarks+'：</td>\
            </tr>\
            <tr>\
            <td nowrap="" class="TableData" colspan="6">'+check(arr.remark)+'</td>\
                </tr>\
                <tr>\
                <td nowrap="" class="TableHeader" colspan="6">'+depatement_th_Attachmentdocument+'：</td>\
            </tr>\
            <tr>\
            <td nowrap="" align="left" class="TableData" colspan="6">\
                '+hr_th_NoAttachments+'    </td>\
                </tr>\
                <tr>\
                <td nowrap="" align="left" class="TableHeader" colspan="6">'+HR_TH_resume+':</td>\
            </tr>\
            <tr>\
            <td nowrap="" class="TableData" colspan="6" style="vertical-align:top;">'+check(arr.resume)+'</td>\
                </tr>\
                <tr align="center" class="TableControl">\
                <td colspan="6">\
                \
                </td>\
                </tr>\
                </tbody>\
                </table>'
                } else {
                    str += '<img style="display: block;text-align: center;margin: 0 auto;margin-top: 160px;margin-bottom: 10px;" src="/img/main_img/shouyekong.png" alt="">'+
                            '<h2 style="text-align: center;color: #666;font-size: 11pt;">暂无数据</h2>';
                }
                $('#staffInfoDiv').html(str)
            }
        },'json')

    }
    //计算生肖和星座
    var Calculator = function () {
        /* *
         *  计算生肖
         *      支持简写生日，比如01，转换为2001，89转换为1989；
         *      支持任何可以进行时间转换的格式，比如'1989/01/01','1989 01'等
         * */
        function getShengXiao(birth) {
            birth += '';
            var len = birth.length;
            if (len < 4 && len != 2) {
                return false;
            }
            if (len == 2) {
                birth - 0 > 30 ? birth = '19' + birth : birth = '20' + birth;
            }
            var year = (new Date(birth)).getFullYear();
            var arr = ['猴', '鸡', '狗', '猪', '鼠', '牛', '虎', '兔', '龙', '蛇', '马', '羊'];
            return /^\d{4}$/.test(year) ? arr[year % 12] : false;
        }
        /* *
         *  计算星座
         *      支持传递[月日]，[月,日]，[年月日]等格式，详见例子
         * */
        function getxingzuo(month, day) {
            var d = new Date(1999, month - 1, day, 0, 0, 0);
            var arr = [];
            arr.push(["魔羯座", new Date(1999, 0, 1, 0, 0, 0)])
            arr.push(["水瓶座", new Date(1999, 0, 20, 0, 0, 0)])
            arr.push(["双鱼座", new Date(1999, 1, 19, 0, 0, 0)])
            arr.push(["牡羊座", new Date(1999, 2, 21, 0, 0, 0)])
            arr.push(["金牛座", new Date(1999, 3, 21, 0, 0, 0)])
            arr.push(["双子座", new Date(1999, 4, 21, 0, 0, 0)])
            arr.push(["巨蟹座", new Date(1999, 5, 22, 0, 0, 0)])
            arr.push(["狮子座", new Date(1999, 6, 23, 0, 0, 0)])
            arr.push(["处女座", new Date(1999, 7, 23, 0, 0, 0)])
            arr.push(["天秤座", new Date(1999, 8, 23, 0, 0, 0)])
            arr.push(["天蝎座", new Date(1999, 9, 23, 0, 0, 0)])
            arr.push(["射手座", new Date(1999, 10, 22, 0, 0, 0)])
            arr.push(["魔羯座", new Date(1999, 11, 22, 0, 0, 0)])
            for (var i = arr.length - 1; i >= 0; i--) {
                if (d >= arr[i][1]) return arr[i][0];
            }
        }
        return{
            shengxiao: getShengXiao,
            xingzuo: getxingzuo
        }
    }()

    $(function(){
        staffInfo();
        $('#mainIframe').hide();
    })

</script>

</body>
</html>
